home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / pcw.zip / MENU.H < prev    next >
C/C++ Source or Header  |  1991-12-08  |  2KB  |  111 lines

  1. /*$no trace */ /* $no list <<<menu.h>>> */
  2. /**********************************************************/
  3. /* File Id.                  Menu.H                       */
  4. /*                                                        */
  5. /*           (c) Copyright 1989-90 by Stan Milam          */
  6. /*                                                        */
  7. /* Comments: This file will contain the definitions for   */
  8. /* Menus.                                                 */
  9. /**********************************************************/
  10.  
  11. #ifndef __POWERC
  12. #pragma pack(1)
  13. #endif
  14.  
  15. #ifdef __ZTC__
  16. #pragma align 1
  17. #endif
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. typedef struct menu_wnd {
  24.        WNDPTR *wnd;
  25.        int    urow,ucol,lrow,lcol;
  26.        int    fcolor,bcolor;
  27.        int    btype, bfclr,bbclr;
  28.        char   *title;
  29.        int    tvloc, thloc, tfclr, tbclr;
  30.        int    cfclr, cbclr;
  31. }MENU_WND;
  32.  
  33. typedef struct p_menu_list {
  34.        char select_key;
  35.        char *item;
  36. }PMNUFLDS;
  37.  
  38. typedef struct {
  39.        MENU_WND    pwnd;
  40.        int         bar_pos;
  41.        PMNUFLDS    *plist;
  42. }PMNUTYPE;
  43.  
  44. typedef struct {
  45.        char select_key;
  46.        int  select_col;
  47.        char *item;
  48.        char *item_msg;
  49. }LMNUFLDS;
  50.  
  51. typedef struct l_menu_type {
  52.        MENU_WND    lwnd;
  53.        int         bar_pos, wnd_pos;
  54.        LMNUFLDS    **llist;
  55. }LMNUTYPE;
  56.  
  57. typedef struct {
  58.        char *item_fld;
  59.        char *item;
  60.        char *item_msg;
  61.        int  select_col;
  62. }LM_MNUFLDS;
  63.  
  64. typedef struct lm_menu_type {
  65.        MENU_WND   lwnd;
  66.        int        bar_pos, wnd_pos;
  67.        LM_MNUFLDS **llist;
  68. }LM_MNUTYPE;
  69.  
  70. typedef struct pick_list {
  71.  
  72.        MENU_WND    plwnd;
  73.        char        **list;
  74.        int         bar_pos, off;
  75.  
  76. }PICKLIST;
  77.  
  78. typedef struct {
  79.         char select_key;
  80.         int  select_col;
  81.         char *item;
  82. }TMNUFLDS;
  83.  
  84. typedef struct t_menu_type {
  85.         MENU_WND  twnd;
  86.         int       bar_pos, wnd_pos;
  87.         TMNUFLDS  **tlist;
  88. }TMNUTYPE;
  89.  
  90. #ifndef __POWERC
  91. #pragma pack()
  92. #endif
  93.  
  94. #ifdef __ZTC__
  95. #pragma align
  96. #endif
  97.  
  98. WNDPTR *makepmenu(PMNUTYPE *menu);
  99. WNDPTR *makelmenu(LMNUTYPE *menu);
  100. WNDPTR *make_pick_list(PICKLIST *menu);
  101. WNDPTR *maketmenu(TMNUTYPE *menu);
  102. int    get_pick_list(PICKLIST *menu);
  103. int    pmenuinput(PMNUTYPE *menu);
  104. int    lmenuinput(LMNUTYPE *menu);
  105. int    tmenuinput(TMNUTYPE *menu);
  106.  
  107. #ifdef __cplusplus
  108. }
  109. #endif
  110. /*$trace */ /* $list <<<menu.h>>> */
  111.